export const createElementWithClass = (label, cln) => {
    const elmt = document.createElement(label);
    // console.log(elmt);
    if(elmt === null) {
        alert(`Creating ${label} has failed!`);
        throw `Cannot reate ${label} element!`;
    }
    else {
        elmt.className = cln;
    }
    return elmt;
}
